﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ObjectPersistence;

public partial class Admin_Controls_Mod_AddinManager_AddinManagerChoiseModule : System.Web.UI.UserControl
{
    ModuleAssembler moduleService = new ModuleAssembler();
    protected void Page_Load(object sender, EventArgs e)
    {

        if (!IsPostBack)
        {


            // Load data to 

            rl_Module.DataSource = moduleService.ReadCollectionAll();
            rl_Module.DataTextField = "Name";
            rl_Module.DataValueField = "ModuleId";
            rl_Module.DataBind();
        }
    }
    protected void bt_Next_Click(object sender, EventArgs e)
    {
        Response.Redirect(DoAction.ActionWithID(PageView.AddinManager, Action.CREATE, "moduleId=" + rl_Module.SelectedValue));
    }
}
